<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>薪资查询</title>
<script type="text/javascript" src="../static/easyui/jquery.min.js"></script>
<script type="text/javascript" src="../static/easyui/jedate.min.js"></script>
<script type="text/javascript" src="../static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../static/easyui/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="../static/easyui/themes/icon.css">
<link rel="stylesheet" href="../static/easyui/themes/metro-orange/easyui.css">
<link rel="stylesheet" href="../static/easyui/themes/metro-red/window.css">
<link rel="stylesheet" href="../static/ttt/css/AddTrainingProject.css?<%=Math.random()%>">
</head>
<body>
<script type="text/javascript">
$(function(){
	$("#yuan_xinzi").tree({
		checkbox:false,
		url:"Profect_zhijiEmp",
		onSelect:function(node){
			$('#xinzichaxun').datagrid({    
				url:'sele_mysals', //数据源地
		 		queryParams: {  		
		 			empid:node.id 		
				},
			    columns:[[    
			    	{field:'empname',width:100,title:'员工名称',align:'center'},    
			        {field:'slszt',width:100,title:'套账主题',align:'center'},   
			        {field:'SLSTIME',width:100,title:'发放月份',align:'center',
			        	formatter : function(value){
			        		var d = new Date(value);
			        		var times=d.getFullYear() + '-' + (d.getMonth() + 1) ;
			        		return times;
			        	}	
			        },
			        {field:'WAGSQJ',width:100,title:'请假',align:'center',
			        	formatter : function(value){
			        		return "-"+value;
			        	}		
			        },
			        {field:'WAGSCD',width:100,title:'迟到（50/次）',align:'center',
			        	formatter : function(value){
			        		return "-"+value;
			        	}	
			        },
			        {field:'WAGSZT',width:100,title:'早退（50/次）',align:'center',
			        	formatter : function(value){
			        		return "-"+value;
			        	}
			        },
			        {field:'WAGSWQ',width:100,title:'旷工（200/次）',align:'center',
			        	formatter : function(value){
			        		return "-"+value;
			        	}
			        },
			        {field:'WAGSSB',width:100,title:'社保',align:'center',
			        	formatter : function(value){
			        		return "-"+value;
			        	}
			        },
			        {field:'WAGSYF',width:100,title:'应发工资',align:'center'},
			        {field:'WAGSSF',width:100,title:'实发工资',align:'center'},
			        {field:'WAGSSTAT',width:100,title:'状态',align:'center',
			        	formatter : function(value){
			        		return "已发放";
			        	}	
			        }
			    ]]
			
			}); 
		}
	})
	$('#xinzichaxun').datagrid({    
 		url:'xinzichaxun_', //数据源地
	    columns:[[    
	    	{field:'empid',width:100,title:'编号',hidden:true,align:'center'},    
	    	{field:'empname',width:100,title:'员工名称',align:'center'},    
	        {field:'slszt',width:100,title:'套账主题',align:'center'},   
	        {field:'SLSTIME',width:100,title:'发放月份',align:'center',
	        	formatter : function(value){
	        		var d = new Date(value);
	        		var times=d.getFullYear() + '-' + (d.getMonth() + 1) ;
	        		return times;
	        	}	
	        },
	        {field:'WAGSQJ',width:100,title:'请假',align:'center',
	        	formatter : function(value){
	        		return "-"+value;
	        	}		
	        },
	        {field:'WAGSCD',width:100,title:'迟到（50/次）',align:'center',
	        	formatter : function(value){
	        		return "-"+value;
	        	}	
	        },
	        {field:'WAGSZT',width:100,title:'早退（50/次）',align:'center',
	        	formatter : function(value){
	        		return "-"+value;
	        	}
	        },
	        {field:'WAGSWQ',width:100,title:'旷工（200/次）',align:'center',
	        	formatter : function(value){
	        		return "-"+value;
	        	}
	        },
	        {field:'WAGSSB',width:100,title:'社保',align:'center',
	        	formatter : function(value){
	        		return "-"+value;
	        	}
	        },
	        {field:'WAGSYF',width:100,title:'应发工资',align:'center'},
	        {field:'WAGSSF',width:100,title:'实发工资',align:'center'},
	        {field:'WAGSSTAT',width:100,title:'状态',align:'center',
	        	formatter : function(value){
	        		return "已发放";
	        	}	
	        }
	    ]],
	    pagination:true,
	    pageNumber:1,
	    pageSize:10,
	    pageList:[5,10,15] 
	
	}); 
})
</script>
<div style="width:158px;height:520px;float:left;">
		<ul id="yuan_xinzi" style="width:158px;height:520px;border-bottom:1px solid #d4a375;overflow:auto;"></ul>
	</div>

 <div style="float:left;width:970px;height:510px;padding:10px;">
	<table id="xinzichaxun" class="easyui-datagrid" style="float:left;width:100%;height:510px;" data-options="fitColumns:true,singleSelect: true">
	</table>
 </div> 
</body>
</html>